<%-- 
    Document   : LihatPemesan
    Created on : 02 Des 12, 20:48:51
    Author     : SONY
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ page import="java.sql.*" %>
<%@ page import="java.util.*" %>
<%@ page import="com.bp.Pemesan" %>
<jsp:useBean id="pemesan" scope="application" class="com.bp.Pemesan"/>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>DATA PEMESAN</title>
    </head>
    <body>
            <table border=1>
                <TR>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>Id_Pemesan</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>Nama</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>Alamat</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>Email</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>No_Telp</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>Tanggal Keberangkatn</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>Jumlah Wisatawan</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>Id_Paket</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>Status</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>Edit</B></FONT></TD>
                </TR>  
                
                
                <%
            ArrayList br = pemesan.lihatDataPemesanan();
            for (int idx = 0; idx < br.size(); idx++) {

                Pemesan product = (Pemesan) br.get(idx);
                %>
                
                <tr>
                    <td><%=product.id_pemesan%></td>
                    <td><%=product.nama_pemesan%></td>
                    <td><%=product.alamat_pemesan%></td>
                    <td><%=product.email_pemesan%></td>
                    <td><%=product.no_telp_pemesan%></td>
                    <td><%=product.keberangkatan%></td>
                    <td><%=product.jumalah_wisatawan%></td>
                    <td><%=product.id_paket%></td>
                    <td><%=product.status%></td>
                    <td><a href='updateStatus.jsp?id_pemesan=<%=product.id_pemesan%>'</td>ubah status</a></td>
                    <%}%>
            </table>
        </FORM>
    </body>
</html>
